﻿#ifndef DATAMODEL_H
#define DATAMODEL_H

#include <QAbstractListModel>

class DataModel : public QAbstractListModel
{
    Q_OBJECT
public:
    explicit DataModel(QObject *parent = nullptr);

    enum {
      one = Qt::UserRole + 1,
      two,
      three,
      total
    };

public:
    int rowCount(const QModelIndex& parent = QModelIndex()) const override;
    QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
    QHash<int, QByteArray> roleNames() const override;

private:
    QList<QStringList> list;
};

#endif // DATAMODEL_H
